/**
 * 
 */
package com.ubo.graphviz.model.graph.statement;

import com.ubo.transform.dot.IDotVisitor;

/**
 * @author saludegu
 * 
 */
public class Attribute implements IStatement {

	/**
	 * Nom de l'attribut.
	 */
	protected final String mName;

	/**
	 * Valeur de l'attribut.
	 */
	protected final String mValue;

	/**
	 * 
	 * Constructor
	 * 
	 * @param name
	 * @param value
	 */
	public Attribute(String name, String value) {
		mName = name;
		mValue = value;
	}

	/**
	 * @return the mName
	 */
	public String getName() {
		return mName;
	}

	/**
	 * @return the mValue
	 */
	public String getValue() {
		return mValue;
	}

	/**
	 * @see com.ubo.graphviz.model.graph.statement.IStatement#generate(com.ubo.transform.dot.IDotVisitor)
	 */
	@Override
	public void generate(IDotVisitor<?> visitor) {
		visitor.generate(this);
	}
}
